<include file="Public/header" />
<include file="Public/menu" />
<link rel="stylesheet" href="/Public/admin/adminlte/bootstrap/css/bootstrap-switch.min.css">
<!-- 内容页 -->
<div class="content-wrapper">
    <!-- 面包屑 -->
    <section class="content-header">
        <h1>
            微信设置
            <small>微信消息模板</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="{:U(Weixin/wxInformation)}"><i class="fa fa-dashboard"></i> 微信设置</a></li>
            <li class="active">微信消息模板编辑</li>
        </ol>
    </section>

    <!-- 内容 -->
    <section class="content"><div class="row"><div class="col-md-12">
        <div class="box box-info">
            <div class="box-header with-border">
                <h3 class="box-title">微信消息模板编辑</h3>

                <div class="box-tools">

                    <div class="btn-group pull-right" style="margin-right: 10px">
                        <a href="{:U('Weixin/wxInformation')}" class="btn btn-sm btn-default"><i class="fa fa-list"></i>&nbsp;微信消息模板列表</a>
                    </div>
                </div>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form action="{:U('Weixin/doNewTemplate')}" method="post" accept-charset="UTF-8" class="form-horizontal" pjax-container="">
                <input type="hidden" name="id" value="{$info['slt_id']}">
                <div class="box-body">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">模板编号</label>
                        <div class="col-sm-6">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-pencil"></i></span>
                                <input type="text" name="number" value="{$info['number']}" class="form-control" placeholder="模板编号">

                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">模板标题</label>
                        <div class="col-sm-6">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-pencil"></i></span>
                                <input type="text" name="title_name" value="{$info['title_name']}" class="form-control" placeholder="模板标题">

                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">全平台通用</label>
                        <div class="col-sm-6">
                            <div class="box box-solid box-info no-margin">
                                <select class="form-control" name="is_terrace">
                                    <option value="0">否</option>
                                    <option value="1">是</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">类型</label>
                        <div class="col-sm-6">
                            <div class="box box-solid box-info no-margin">
                                <select class="form-control" name="is_type">
                                    <option value="0">-请选择-</option>
                                    <option value="1">提货通知</option>
                                </select>
                            </div>
                        </div>
                    </div>

                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <div class="col-sm-2">

                    </div>
                    <div class="col-sm-6">

                        <div class="btn-group pull-left">
                            <button type="submit" class="btn btn-info pull-right">提交</button>
                        </div>
                    </div>

                </div>
                <!-- /.box-footer -->
            </form>
        </div>

    </div></div>

    </section>
</div>
<!-- 底部 -->
<include file="Public/common_footer" />
<script src="__PUBLIC__/admin/adminlte/bootstrap/js/bootstrap-switch.min.js"></script>
<script>
    $(function(argument) {
        $('[type="checkbox"]').bootstrapSwitch();
    })


    $('.form-horizontal').validate({
        rules: {
            name: {
                required: true,
                rangelength :[1,50]
            },
            'keywords[]': {
                required: true,
                rangelength :[1,50]
            }
        },
        messages: {
            name: {
                required: '短信类型名称必填',
            },
            'keywords[]': {
                required: '参数必填',
            }
        }
    })
</script>
